-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for v3.16 #66
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this. Do you happen to have a v3.16 replay for tests?
gen/resources/frames.json
Outdated
@@ -75,7 +75,11 @@ | |||
{ "name": "hitlag", "type": "f32", | |||
"version": "3.8" }, | |||
{ "name": "animation_index", "type": "u32", | |||
"version": "3.11" } | |||
"version": "3.11" }, | |||
{ "name": "instance_hit_by", "type": "u16", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm thinking we should name this similarly to the existing last_hit_by
field. Maybe last_hit_by_instance_id
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
last_hit_by
isn't even true to its name because it resets to 6 (signifying no other player) after a certain number of frames. The uselessness of that field was the main reason I even went about adding these new fields in the first place.
Anyway, I generally prefer the shorter name that isn't super semantic. Even your proposed name could be misleading given that it resets to 0 on death. I just went with the name in the spec, but if you want to change it you can.
Added a replay and tests. Used the v3.16 replay for the simple v3.14/v3.15 tests. More involved tests for v3.16 also added. The v3.16 test sort of tests vanilla melee behavior, but I think it is still a useful test to verify the values make sense. |
Thanks for this, @NickCondron. I ended up renaming it to Did you have any trouble with the code generation? |
No. It went well. I just had to install a few dependencies. |
https://github.com/project-slippi/slippi-wiki/blob/master/SPEC.md#post-frame-update
Latest fields added by yours truly